{%  extends "../public/base.html"  %}

{%  block concent  %}
<div class="tpl-content-wrapper">

    <div class="container-fluid am-cf">
        <div class="row">
            <div class="am-u-sm-12 am-u-md-12 am-u-lg-9">
                <div class="page-header-heading">
                    <span class="am-icon-home page-header-heading-icon"></span> 
                    商品修改

                </div>
            </div>
           
        </div>

    </div>

    <div class="row-content am-cf">
    <div class="am-u-sm-12 am-u-md-12 am-u-lg-12">
        <div class="widget am-cf">
            <div class="widget-head am-cf">
                <div class="widget-title am-fl">商品修改</div>
                <div class="widget-function am-fr">
                    <a href="javascript:;" class="am-icon-cog"></a>
                </div>
            </div>
            <div class="widget-body am-fr">
                <form class="am-form tpl-form-line-form" action="{% url 'orderupdate' %}" method="post" enctype="multipart/form-data">
                    {% csrf_token %}
                    <div>
                        <input type="hidden" name="oid" value="{{ oinfo.id }}">
                    </div>
                    
                    <div class="am-form-group">
                        <label for="user-name" class="am-u-sm-3 am-form-label">收货人</label>
                        <div class="am-u-sm-9">
                            <input type="text" value="{{ oinfo.addname }}" name="addname" class="tpl-form-input" >
                            
                        </div>
                    </div>
                    <div class="am-form-group">
                        <label for="user-name" class="am-u-sm-3 am-form-label">收货地址</label>
                        <div class="am-u-sm-9">
                            <input type="text" value="{{oinfo.address}}" name="address" class="tpl-form-input">
                            
                        </div>
                    </div>
                    <div class="am-form-group">
                        <label for="user-name" class="am-u-sm-3 am-form-label">联系方式</label>
                        <div class="am-u-sm-9">
                            <input type="text" value="{{ oinfo.addphone }}" class="tpl-form-input" name="addphone" >
                            
                        </div>
                    </div>
                    <div class="am-form-group">
                        <label for="user-phone" class="am-u-sm-3 am-form-label">商品状态</label>
                        <div class="am-u-sm-9">
                            <select name="status" data-am-selected="{searchBox: 1}">
                                <option value="1" {% if oinfo.status == 1 %} selected {% endif %} >未付款</option>
                                <option value="2" {% if oinfo.status == 2 %} selected {% endif %} >已付款,待发货</option>
                                <option value="3" {% if oinfo.status == 3 %} selected {% endif %} >已发货,待收货</option>
                                <option value="4" {% if oinfo.status == 4 %} selected {% endif %} >已完成</option>
                                <option value="5" {% if oinfo.status == 5 %} selected {% endif %} >已取消</option>
                            </select>

                        </div>
                    </div>
                   

                    <div class="am-form-group">
                        <div class="am-u-sm-9 am-u-sm-push-3">
                            <button class="am-btn am-btn-primary tpl-btn-bg-color-success ">提交</button>
                        </div>
                    </div>
                </form>
            </div>
        </div>
    </div>        

    </div>
</div>  
{%  endblock  %}